<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'registration-form',
    'enableAjaxValidation' => true,
));
?>

<?php echo $form->errorSummary($model, null, null, array('class' => 'message error')); ?>

<p>Change Password
    <small>(leave blank if you do not want to change password)</small>
</p>
<hr/>
<p>
    <?php echo $form->passwordField($model, 'oldPassword', array('class' => 'full', 'placeholder' => 'Old Password',)); ?>
</p>

<p>
    <?php echo $form->passwordField($model, 'newPassword', array('class' => 'full', 'placeholder' => 'New Password',)); ?>
</p>

<p>Change Email Address</p>
<hr/>
<p>
    <?php echo $form->textField($model, 'email', array('type' => 'email', 'class' => 'full', 'placeholder' => 'Email',)); ?>
</p>

<div class="action">
    <?php echo CHtml::submitButton('Save', array('class' => 'button button-gray fr')); ?>
</div>
<?php $this->endWidget(); ?>